
<table>
	<tr align="center">
		<th width="40">序号</th>
		<th>流水号</th>
		<th>事由</th>
		<th>路线</th>
		<th>时间</th>

		<th>安排</th>
		<th>紧急程度</th>
		
		<th>录入员</th>
		<th>状态</th>
		<th>创建日期</th>
	</tr>
	{[foreach name=outer key=key item=item from=$result]} 
	{[assign var="no" value="`$key+1`"]}
	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
		<td>{[$no]}</td>

		<td><a href="javascript:void(0)"
			onclick="Common.dialog_view_('{[$root]}{[$viewLink]}&id={[$item.id]}', '查看信息', '600x360')">{[$item.id]}</a></td>
		<td>{[$item.purpose|truncate:21:"...":true]}</td>
		<td>{[$item.address|truncate:21:"...":true]}</td>
		<td>{[$item.date]}</td>

		<td><a href="javascript:void(0)" onclick="car_plan({[$item.plan]})">{[$item.plan_t]}</a></td>

		{[if $item.status lt 3 and $item.urgent eq '3']}
		<td style="color: white; background: red">{[else]}
		<td>{[/if]} {[$item.urgent_t]}</td>
		
		<td><a href="javascript:void(0)" onclick="emp({[$item.oper]})">{[$item.oper_t]}</a></td>
		<td>{[$item.status_t]}</td>
		<td>{[$item.createtime|date_format:'%Y-%m-%d']}</td>
	</tr>
	{[/foreach]}
</table>

<script type="text/javascript">
function car_plan(id) {
	var url = "car.php?do=Plan.view&id=" + id;
	Common.dialog_view_(url, '用车安排', '650x400');
}
</script>
